import requests
import config

class LoginApi(object):

    def __init__(self):
        self.url = config.BASE_URL + '/api/sys/login'

    def login(self, body):
        return requests.post(self.url, json=body)